package com.example.his.api.db.dao;


import com.example.his.api.db.pojo.FlowRegulationEntiy;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * @author myname
 * @description 针对表【tb_flow_regulation(人员调流表)】的数据库操作Mapper
 * @createDate 2024-06-03 23:28:12
 * @Entity generator.domain.FlowRegulationEntiy
 */
public interface FlowRegulationDao {
  
  //  查询科室名称列表
  public ArrayList <String> searchPlaceList();
  
  //  分页查询
  public ArrayList <FlowRegulationEntiy> searchByPage(Map param);
  
  //  查询分页数量
  public long searchCount(Map param);
  
  //  新增数据
  public int insert(FlowRegulationEntiy flowRegulationEntiy);
  
  
  //  根据id查询调流记录
  public FlowRegulationEntiy searchById(int id);
  
  //  更新体检碉流记录
  public int update(Map map);
  
  //  更新实际等待人数
  public int updateRealNum(Map param);
  
  //  查询自动调流模式下的推荐科室列表
  public ArrayList <HashMap> searchRecommendWithWeight();
  
  //  查询手动调流模式下的推荐科室列表
  public ArrayList <HashMap> searchRecommendWithPriority();
  
  //  查询所有体检调流科室
  public ArrayList <HashMap> searchAllPlace();
  
  //  批量删除
  public int deleteByIds(Integer[] ids);
}





